package com.Darkra1Zzz.service;

import com.Darkra1Zzz.entity.PageInfo;
import com.Darkra1Zzz.entity.Type;

import java.util.List;

public interface TypeService {
    public PageInfo<Type> findpageInfo(Type type, Integer pageIndex, Integer pageSize);

    public boolean deleteType(Integer id);

    public boolean addType(Type type);

    public int updateType(Type type);

    public Type findTypeBYId(Integer id);

    public List<Type>getAll();

    PageInfo<Type> findPageInfo(String type, Integer pageIndex, Integer pageSize);
}
